package com.intramirror.product.mapper;

import com.intramirror.product.entity.UserCertificate;

import java.util.List;
import java.util.Map;

public interface UserCertificateMapperExt {

    void batchInsert(List<UserCertificate> list);

    /**
     * 根据条件查询代金券列表
     * @param condMap
     * @return
     */
    List<Map<String, Object>> queryCouponUserList(Map<String, Object> condMap);

    /**
     * 根据条件查询代金券数量
     * @param condMap
     * @return
     */
    int countCouponUserList(Map<String, Object> condMap);

    /**
     * 根据父券id查询子券数据
     * @param couponIds
     * @return
     */
    List<UserCertificate> queryChildCouponList(List<Long> couponIds);

}